// 科室标题
// 直接用首页科室标题列表

import { httpGet, httpPost, httpPostJSON } from "../service/request";

export function getDiseaseList(params: {
  departmentId: number;
  count: number;
  page: number;
}) {
  return httpGet("/health/user/sickCircle/v1/findSickCircleList", params);
}

export function addDiseaseItem(data) {
  return httpPostJSON(
    "/health/user/sickCircle/verify/v1/publishSickCircle",
    data
  );
}

export function uploadImageDisease(picture: File, sickCircleId: number) {
  return httpPost("/health/user/sickCircle/verify/v1/uploadSickCirclePicture", {
    picture,
    sickCircleId,
  });
}
